package sanrenxing.dayEnd.backRepertoryTotal.service;

import sanrenxing.dayEnd.backRepertoryTotal.domain.ExchangeVarietyRate;

import java.util.List;

/**
 * 交易所品种费率设置
 */

public interface ExchangeVarietyRateBiz {
    /**
     * 将基金实体添加数据库基金表中
     * @param exchangeVarietyRate 基金对象
     * @return 0:添加失败,1:添加成功
     */
    public int add(ExchangeVarietyRate exchangeVarietyRate);
    /**
     * 从表中根据基金编号删除一行数据
     * @param BreedRateId 基金编号字符串
     * @return 删除影响的行数(0:删除失败,1:删除成功)
     */
    public int delete(String BreedRateId);
    /**
     * 修改数据到foundation表
     * @param exchangeVarietyRate 员工对象
     * @return 0:修改失败,1:修改成功
     */
    public int update(ExchangeVarietyRate exchangeVarietyRate);

    /**
     * 按条件分页查询
     * @param exchangeVarietyRate
     * @param row
     * @param page
     * @return
     */
    public List<ExchangeVarietyRate> queryAll(ExchangeVarietyRate exchangeVarietyRate, int row, int page);

    /**
     * 统计记录数
     * @param exchangeVarietyRate 统计条件
     * @return 记录行数据
     */
    public int count(ExchangeVarietyRate exchangeVarietyRate);
}
